<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/common/tags.jspf" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<template:header context="${context}" title="Redmine"/>
</head>
<body class="controller-users action-new">
	<template:content context="${context}" session="${session}" sidebar="admin" menus="${adminMenus}">
<%-- 	<admin:content context="${context}" menus="${adminMenus}" session="${session}"> --%>
		<h2><a href="${context}/admin/users">Users</a> &#187; New user</h2>
        <ui:errors path="account.*"/>

		<form:form commandName="account" accept-charset="UTF-8" action="${context}/admin/users" class="new_user" id="new_user" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="IEbDzdiXcFEcK+oBSlONkMLg/F5ob3bHxUtMOy88BeQ=" /></div>
		<div id="user_form">
		<!--[form:user]-->
		<div class="splitcontentleft">
		<fieldset class="box tabular">
		  <legend>Information</legend>
			<p><label for="user_login">Login<span class="required"> *</span></label><form:input path="user.id" size="25"/></p>
			<p><label for="user_firstname">First name<span class="required"> *</span></label><form:input path="user.firstName" size="30"/></p>
			<p><label for="user_lastname">Last name<span class="required"> *</span></label><form:input path="user.lastName" size="30"/></p>
			<p><label for="user_mail">Email<span class="required"> *</span></label><form:input path="user.email" size="30"/></p>
			<p><label for="user_language">Language</label><form:select path="user.language" items="${language}"/></p>
			<p><label for="user_admin">Administrator</label><form:checkbox path="user.admin"/></p>  
		</fieldset>
		
		<fieldset class="box tabular">
		  <legend>Authentication</legend>
		  <div id="password_fields" style="">
		  <p><label for="user_password">Password<span class="required"> *</span></label><form:password path="password.newPassword" size="25"/>
		  <em class="info">Must be at least 4 characters long.</em></p>
		  <p><label for="user_password_confirmation">Confirmation<span class="required"> *</span></label><form:password path="password.newPasswordConfirmation" size="25"/></p>
		  </div>
		</fieldset>
		</div>
		
		<div class="splitcontentright">
		<fieldset class="box">
		  <legend>Email notifications</legend>
		  <%@ include file="/WEB-INF/views/user/mail_notifications.jsp" %>
		</fieldset>
		
		<fieldset class="box tabular">
		  <legend>Preferences</legend>
		  <%@ include file="/WEB-INF/views/user/preferences.jsp" %>
		</fieldset>
		</div>
		</div>
		<div style="clear:left;"></div>
		<!--[eoform:user]-->
		  <p>
		    <input name="commit" type="submit" value="Create" />
		    <input name="continue" type="submit" value="Create and continue" />
		  </p>
		</form:form>
        
        <div style="clear:both;"></div>
<%-- 	</admin:content> --%>
	</template:content>
</body>
</html>

